package com.mchina.myMaven.rest.service.imp;

import com.mchina.myMaven.rest.bean.Employee;
import com.mchina.myMaven.rest.dao.EmployeeDao;
import com.mchina.myMaven.rest.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;

@Service("employeeService")
@Transactional
public class EmployeeServiceImp<T extends Serializable> extends BaseServiceImp<Employee> implements EmployeeService {
    @Autowired
    public void setDao(EmployeeDao dao) {
        super.setDao(dao);
    }

    public EmployeeDao getDao() {
        return (EmployeeDao) super.getDao();
    }
}
